using System;
using System.Collections.Generic; 
using System.Linq;  
using System.Text;  
using System.Data.Linq.Mapping;
using System.ComponentModel;

namespace MRSite.Entity  
{  
	 [Table(Name = "express")] 
	 public class Express : Entity
    { 
		/// <summary>
		///自增ID
		/// </summary>
		[Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
		public override int id{ get; set; } 

		/// <summary>
		///快递名称
		/// </summary>
		[Column(Name = "title")]
		public String title{ get; set; } 

		/// <summary>
		///物流编码
		/// </summary>
		[Column(Name = "express_code")]
		public String express_code{ get; set; } 

		/// <summary>
		///配送费用
		/// </summary>
		[Column(Name = "express_fee")]
		public Decimal express_fee{ get; set; } 

		/// <summary>
		///快递网址
		/// </summary>
		[Column(Name = "website")]
		public String website{ get; set; } 

		/// <summary>
		///备注说明
		/// </summary>
		[Column(Name = "remark")]
		public String remark{ get; set; } 

		/// <summary>
		///排序
		/// </summary>
		[Column(Name = "sort_id")]
		public int sort_id{ get; set; } 

		/// <summary>
		///是否不显示
		/// </summary>
		[Column(Name = "is_lock")]
		public int is_lock{ get; set; }

        /// <summary>
        /// 配送方式名称
        /// </summary>
        [Column(Name = "dispatchname")]
        public string dispatchname { get; set; }

        /// <summary>
        /// 配送类型(0商家配送；1自提)
        /// </summary>
        [Column(Name = "dispatchtype")]
        public int dispatchtype { get; set; }

          /// <summary>
        /// 计费方式(0按重量计费；1按件计费)
        /// </summary>
        [Column(Name = "calculatetype")]
        public int calculatetype { get; set; }
         

        /// <summary>
        /// 首费(元)
        /// </summary>
        [Column(Name = "firstprice")]
        public decimal firstprice { get; set; }

        /// <summary>
        /// 续费(元)
        /// </summary>
        [Column(Name = "secondprice")]
        public decimal secondprice { get; set; }

        /// <summary>
        /// 首重(克)
        /// </summary>
        [Column(Name = "firstweight")]
        public int firstweight { get; set; }

        /// <summary>
        /// 续重(克)
        /// </summary>
        [Column(Name = "secondweight")]
        public int secondweight { get; set; }



       
        /// <summary>
        /// 首费(元) 按件
        /// </summary>
        [Column(Name = "firstnumprice")]
        public decimal firstnumprice { get; set; }

        /// <summary>
        /// 续费(元) 按件
        /// </summary>
        [Column(Name = "secondnumprice")]
        public decimal secondnumprice { get; set; }

        /// <summary>
        /// 首件(个)
        /// </summary>
        [Column(Name = "firstnum")]
        public int firstnum { get; set; }

        /// <summary>
        /// 续件(个)
        /// </summary>
        [Column(Name = "secondnum")]
        public int secondnum { get; set; }



        /// <summary>
        /// 配送区域
        /// </summary>
        [Column(Name = "areas")]
        public string areas { get; set; }

        /// <summary>
        /// 自提地址
        /// </summary>
        [Column(Name = "carriers")]
        public string carriers { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        [Column(Name = "shopid"), DefaultValue(0)]
        public int shopid { get; set; }

	 } 
}